clearset more off#delimit ;log using "/Users/sebastian/Mac/Argentina/Fraud/paper/replication_materials/mebane_second_mean", replace text;use "/Users/sebastian/Mac/Argentina/Fraud/paper/replication_materials/real_simulated_votes.dta";label var radical_clean " ";label var conservative_clean " ";label var radical_fraud " ";label var conservative_fraud " ";tostring radical_clean conservative_clean radical_fraud conservative_fraud radical_1931 conservative_1931 radical_1935 conservative_1935 radical_1940 conservative_1940 conservative_1941 radical_1941, replace;gen s_1=substr(radical_clean,2,1);gen s_2=substr(conservative_clean,2,1);gen s_3=substr(radical_fraud,2,1);gen s_4=substr(conservative_fraud,2,1);gen s_5=substr(radical_1931,2,1);gen s_6=substr(conservative_1931,2,1);gen s_7=substr(radical_1935,2,1);gen s_8=substr(conservative_1935,2,1);gen s_9=substr(radical_1940,2,1);gen s_10=substr(conservative_1940,2,1);gen s_11=substr(radical_1941,2,1);gen s_12=substr(conservative_1941,2,1);destring radical_clean conservative_clean radical_fraud conservative_fraud radical_1931 conservative_1931 radical_1935 conservative_1935 radical_1940 conservative_1940 conservative_1941 radical_1941, replace;destring s_1 s_2 s_3 s_4 s_5 s_6 s_7 s_8 s_9 s_10 s_11 s_12, replace;*/ Second Digit Test */;*/ Simulated Clean */;ttest s_1==4.187;ttest s_2==4.187;*/ Simulated Fraud */;ttest s_3==4.187;ttest s_4==4.187;*/ 1931 */;ttest s_5==4.187;ttest s_6==4.187;*/ 1935 */;ttest s_7==4.187;ttest s_8==4.187;*/ 1940 */;ttest s_9==4.187;ttest s_10==4.187;*/ 1941 */;ttest s_11==4.187;ttest s_12==4.187;log c;